define(function(require, exports, module) {
    var ALL = require("../../common/all"),
        CONFIG = ALL.CONFIG,
        METHOD = ALL.METHOD,
        Init = ALL.Init;


    var _vm = Init.initVue({
        data : {
            id : null,
            overview : null,
            user_holds: null
        },
        methods: {
        }
    });

    var id = METHOD.getQueryParms("id");
    _vm.id = id;
    if (id) {
        METHOD.loading.show();
        METHOD.ajax("collection/overview",{col_id: id}).done(function(json){
            METHOD.loading.hide();
            _vm.overview = json.data.overview;
            _vm.user_holds = json.data.user_holds;
        }).fail(function(){
            METHOD.loading.hide();
        });
    }
});

